'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert('Users', [
      {
        departmentId: 1,
        username: '李诗诗',
        gender: "女",
        phoneNumber: "15546279123",
        roleId: 5,
        default: true,
        roleState: true,
        createdAt: new Date(),
        updatedAt: new Date()
      }, {
        departmentId: 1,
        username: '张涛',
        gender: "男",
        phoneNumber: "15549864378",
        roleId: 1,
        default: false,
        roleState: true,
        createdAt: new Date(),
        updatedAt: new Date()
      }, {
        departmentId: 1,
        username: 'admin',
        gender: "男",
        phoneNumber: "12345678911",
        roleId: 5,
        default: true,
        roleState: true,
        createdAt: new Date(),
        updatedAt: new Date()
      }
    ], {});
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete('Users', null, {});
  }
};
